import request from '@/utils/request'

// 查询机组成员信息列表
export function listAircrew(query) {
  return request({
    url: '/dyn/aircrew/list',
    method: 'get',
    params: query
  })
}

// 查询机组成员信息详细
export function getAircrew(aircrewid) {
  return request({
    url: '/dyn/aircrew/' + aircrewid,
    method: 'get'
  })
}

// 新增机组成员信息
export function addAircrew(data) {
  return request({
    url: '/dyn/aircrew',
    method: 'post',
    data: data
  })
}

// 修改机组成员信息
export function updateAircrew(data) {
  return request({
    url: '/dyn/aircrew',
    method: 'put',
    data: data
  })
}

// 删除机组成员信息
export function delAircrew(aircrewid) {
  return request({
    url: '/dyn/aircrew/' + aircrewid,
    method: 'delete'
  })
}
